<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
  <!--当需要获取input值时使用双向绑定-->
  <input type="text" v-model="msg">
  <h1>{{msg}}</h1>
  <!--js中多个空格默认只显示一个,可以用转义符&nbsp,一组表示一个空格-->
  a&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspb
    <hr>
    <input type="radio" v-model="gender" value="男">男
    <input type="radio" v-model="gender" value="女">女
    <h2>{{gender}}</h2>
</div>
<script src="../js/vue.js"></script>
<script>
  let v = new Vue({
    el:"div",//管理范围
      data: {
        msg:"双向测试绑定",//显示信息
        gender:"男"
      }
  })
</script>
</body>
</html>